Viber

Druid authors can integrate Druid chatbots with Viber to allow their customers to start a conversation with their chat bot in the Viber app.

Important!  The Welcome flow will be triggered at the user's first conversation with the bot; the predict with the initial "user says" is dropped.

Prerequisite

  • You need to have an Active Viber account on a platform which supports bots (iOS/Android). This account will automatically be set as the account administrator during the account creation process.
  • For DRUID on premise deployments, make sure that you provide access to/from the necessary messaging endpoints as follows:
  • Outbound chatapi.viber.com
    Inbound DRUID.BotApp

This section describes how to integrate your Druid chatbot with Viber.

Step 1. Create a new Viber bot

  1. Go to https://partners.viber.com and enter the mobile number associated to your active Viber account. You will receive a message with a code in the Viber messaging app.
  2. Enter the code to activate access to the Public Chat Admin. You are logged in Viber's Public Chat Admin.
  3. On the left menu, click Create Bot Account.
  4. On the right side of the screen, provide the mandatory information, accept the Terms and conditions and select the two Viber acknowledgements.
  5. Click Create. Your Viber bot account is created and the token associated to your Viber bot is generated.
  6. Note:  Copy the access token as you will need it in the Druid Chatbot Portal.

Step 2. Connect your Druid chatbot to the Viber Chat API

  1. Log in the Druid Chatbot Portal and from the main menu, select your bot. The bot configuration page appears by default on the Details tab.
  2. Click the Channels tab, then click Viber. The Viber Channel Info section expands.
  3. Enter / Paste the access token you copied when creating the Viber bot.
  4. Click the Publish button. The channel activation might take up to 1 minute, wait until it completes.

After the channel's activation, two fields are available in DRUID:

  • [[ChatUser]].ChannelId = "viber"
  • [[ChatUser]].UserId - Stores an unique identifier of the Viber user account.

Step 3. Talk to your bot

To open the chatbot in the Viber channel, in the Druid Portal, go to the bot settings, click the Channels tab and click on the Viber channel icon. You can start talking to the bot.

Step 4. Publish your Viber bot

  1. On your mobile device, open the Viber app.

  2. At the bottom, tap on More.

  3. Tap on Settings.

  4. Tap on My Bots.

  5. Tap on your Viber bot.

  6. Tap on Publish.

Step 5. Make the Viber bot QR Code public

After you successfully complete the Viber integration, you have to make the Viber bot QR code available for your customers (either on your website or printed on a paper in the shop).

Your customers will open the Viber messaging app and scan the QR code to chat with your bot.

Note:  In DRUID 7.4 and higher, when a user initiates a conversation with the bot, the Welcome flow will be automatically triggered. Regardless of the user's subscription status to the bot channel, the welcome message will be promptly sent to the user, ensuring a seamless and engaging interaction experience.